@property --gradient-color {
    syntax: '<color>';
    inherits: false;
    initial-value: #7D8D67;
}  

body {
    --gradient-color: #7D8D67;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(to bottom, var(--gradient-color), #000 15%);
    animation: gradientAnimation 20s infinite;
    color: #fff;
    line-height: 1.6;
}


.background-image-container {
  position: relative;
  width: 100%;
  padding-top: 20px;
}

.background-image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/stars-background-2.svg');
  background-position: top;
  background-repeat: repeat;
  background-size: contain;
  opacity: 0.5; /* Adjust this value between 0-1 to control opacity */
  z-index: -1; /* Place it behind the content */
}



.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #fff; /* White header */
    border-radius: 50px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-bar {
    position: relative;
    width: 50%;
    max-width: 600px;
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    max-width: 600px;
    padding: 5px 30px;
    border-radius: 50px;
    background-color: #fff; /* Light gray background */
    font-size: 16px;
    color: #555;
}

.search-bar input::placeholder {
    color: #aaa;
}

.search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: auto;
    opacity: 0.5;
}

/* ...existing code... */

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-result {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ccc; /* Optional: Add a bottom border for separation */
}

.search-result:hover {
    background-color: #f0f0f0; /* Lighten the background color on hover */
}

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.search-result-info {
    display: flex;
    flex-direction: column;
}

.search-result-title {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    color: #000;
}

.search-result-artist {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* ...existing code... */

.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sign-in {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.log-in {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

.log-in:hover {
    background-color: #444;
}

.display-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* Added styles for display name container */
.display-name-container { /* Added */
    position: relative; /* Added */
    display: inline-block; /* Added */
}

/* Added styles for display name */
.display-name { /* Added */
    background-color: #000; /* Added */
    color: #fff; /* Added */
    border: none; /* Added */
    padding: 8px 16px; /* Added */
    border-radius: 50px; /* Added */
    font-size: 14px; /* Added */
    cursor: pointer; /* Added */
    font-weight: bold; /* Added */
}

.display-name:hover { /* Added */
    background-color: #444; /* Added */
}

/* Added styles for dropdown content */
.dropdown-content { /* Added */
    display: none; /* Added */
    position: absolute; /* Added */
    background-color: #000; /* Added */
    min-width: 160px; /* Added */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* Added */
    z-index: 1; /* Added */
    border-radius: 8px; /* Added */
}

.dropdown-content a { /* Added */
    color: white; /* Added */
    padding: 12px 16px; /* Added */
    text-decoration: none; /* Added */
    display: block; /* Added */
}

.dropdown-content a:hover { /* Added */
    background-color: #444; /* Added */
}

.display-name-container:hover .dropdown-content { /* Added */
    display: block; /* Added */
}

.logout-button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

.logout-button:hover {
    background-color: #444;
}

section {
    padding: 2rem;
    text-align: center;
}

#listen-now {
    display: flex;
    flex-direction: row; /* Ensure horizontal layout */
    align-items: center;
    gap: 1rem; /* Adjust spacing between elements */
    justify-content: center; /* Center the buttons horizontally */
    width: fit-content; /* Adjust width to fit content */
    margin: 0 auto; /* Center the section horizontally */
}


.listen-now, .upload-song {
    background-color: #666c7e;
    color: #fff;
    padding: 24px 64px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

.upload-song {
    background-color: #000;
    color: #fff;
    border: 1px solid #fff;
}

.listen-now:hover, .upload-song:hover {
    transform: scale(1.1); /* Increase size on hover */
    transition: transform 0.2s ease; /* Smooth transition */
}


/* Trending Today Section */
.trending-today {
    padding: 20px;
    background-color: #000;
    color: #fff;
    text-align: left;
}

.trending-today h2 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: bold;
    padding-left: 5%;
}

.trending-container {
    display: flex;
    justify-content: space-between; /* Evenly space out cards */
    align-items: center; /* Vertically center the cards */
    padding: 20px;
    padding-left: 5%;
    padding-right: 7%;
    background-color: #E5E5E5;
    overflow-x: auto; /* Scrollable if needed */
    box-shadow: inset 0px 0px 90px rgba(0, 0, 0, 0.8);
}

.trending-card {
    flex: 0 0 160px; /* Fixed width for the cards */
    background-color: #D9D9D9;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
}

.trending-card:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
    transition: transform 0.2s ease; /* Smooth transition */
}

/* .album-cover {
    width: 70%; 
    height: auto; 
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 25%);
} */

.album-cover {
    width: 100%; /* Ensure the image takes up the full width of the container */
    height: 160px; /* Fixed height for the images */
    object-fit: cover; /* Crop the image to fit the container */
    border-radius: 8px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 25%);
}

.trending-card p {
    margin: 10px 0 5px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}


.card-footer {
    display: flex;
    justify-content: space-between; /* Space out views and likes */
    align-items: center; /* Vertically center the items */
    width: 100%;
    font-size: 12px;
    color: #555;
    flex-direction: row; /* Ensure horizontal layout */
    white-space: nowrap; /* Prevent wrapping */
}

.card-footer .views,
.card-footer .likes {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap; /* Prevent wrapping */
    font-weight: bold;
}

.card-footer button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.card-footer button:hover {
    background-color: #444;
}

/* Optional: Ensure proper positioning within the card */
.card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#top-songs {
    padding: 20px;
    background-color: #000;
    color: #fff;
    text-align: left;
}

#top-songs h2 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: bold;
}

.top-songs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.top-song {
    flex: 1 1 calc(20% - 20px);
    background-color: #D9D9D9;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
}

.top-song img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.top-song p {
    margin: 10px 0 5px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

#about {
    background: none;
    color: #e3e3e3; /* Dark text color */
    padding: 2rem; /* Padding around the text */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    max-width: 800px; /* Limit the width */
    margin: 2rem auto; /* Center the section horizontally */
    text-align: justify; /* Justify the text */
    line-height: 1.6; /* Increase line height for readability */
    font-weight: bold;;
}

#about h2 {
    font-size: 2rem; /* Larger font size for the heading */
    margin-bottom: 1rem; /* Space below the heading */
    text-align: center; /* Center the heading */
}

#about p {
    font-size: 1rem; /* Font size for the paragraph */
    margin-bottom: 1rem; /* Space below the paragraph */
}

/* Contact Form Styles */
#contact {
    padding: 2rem;
    text-align: center;
    background-color: #000000; /* White background */
    color: #ffffff; /* Dark text color */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 20%;
    margin: 2rem auto; /* Center the form horizontally */
}

#contact h2 {
    margin-bottom: 1rem;
    font-size: 24px;
    font-weight: bold;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Add space between form groups */
}

#contact-form .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#contact-form label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
}

#contact-form textarea {
    height: 150px; /* Make the textarea bigger */
    resize: vertical; /* Allow vertical resizing */
}

#contact-form .button-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

#contact-form button {
    background-color: #666c7e;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

#contact-form button:hover {
    background-color: #7a957c;
}

.footer {
    background-color: #191919;
    color: #fff;
    text-align: center;
    padding: 0.5rem 0;
    width: 100%;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    margin-top: auto; /* Ensure the footer is pushed to the bottom */
    display: flex;
    justify-content: center; /* Center the items horizontally */
    align-items: center; /* Center the items vertically */
    gap: 1rem; /* Add space between the items */
}

.footer a {
    color: #fff; /* Match the text color of the footer */
}

@keyframes gradientAnimation {
    0% {
      --gradient-color: #C6D4FF;
    }
    25% {
      --gradient-color: #7A82AB;
    }
    50% {
      --gradient-color: #307473;
    }
    75% {
      --gradient-color: #12664F;
    }
    100% {
      --gradient-color: #C6D4FF;
    }
}